home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Tele / Internet / MacHTTP 1.2.1.sit / MacHTTP 1.2.1 / search.script < prev   
MacBinary  |  1993-12-08  |  1.6 KB  |  [TEXT/ToyS]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: search.script

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Dec 8 12:08:19 1993, modified Wed Dec 8 12:08:19 1993, creator 'ToyS', type ASCII, 1082 bytes "search.script" , at 0x4ba 328 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ToyS]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 73 65 61 72 63 68 | 2e 73 63 72 69 70 74 00 |..search|.script.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 01 00 00 00 00 00 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 04 3a 00 | 00 01 48 a9 2b ba 83 a9 |......:.|..H.+...|
|00000060| 2b ba 83 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |+.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3a 23 00 00 |........|....:#..|
|00000080| 2d 2d 20 54 68 69 73 20 | 73 63 72 69 70 74 20 64 |-- This |script d|
|00000090| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 61 63 63 65 |emonstra|tes acce|
|000000a0| 73 73 69 6e 67 20 73 65 | 61 72 63 68 61 62 6c 65 |ssing se|archable|
|000000b0| 20 66 69 6c 65 73 20 66 | 72 6f 6d 20 4d 61 63 48 | files f|rom MacH|
|000000c0| 54 54 50 2e 0d 2d 2d 20 | 28 57 68 61 74 20 69 74 |TTP..-- |(What it|
|000000d0| 20 72 65 61 6c 6c 79 20 | 73 68 6f 77 73 20 69 73 | really |shows is|
|000000e0| 20 68 6f 77 20 74 6f 20 | 70 61 73 73 20 61 72 67 | how to |pass arg|
|000000f0| 75 6d 65 6e 74 73 20 74 | 6f 20 41 70 70 6c 65 53 |uments t|o AppleS|
|00000100| 63 72 69 70 74 73 2e 29 | 0d 2d 2d 20 68 74 74 70 |cripts.)|.-- http|
|00000110| 5f 73 65 61 72 63 68 5f | 61 72 67 73 20 69 73 20 |_search_|args is |
|00000120| 61 20 70 72 65 64 65 66 | 69 6e 65 64 20 76 61 72 |a predef|ined var|
|00000130| 69 61 62 6c 65 20 74 68 | 61 74 20 69 73 20 70 61 |iable th|at is pa|
|00000140| 73 73 65 64 20 66 72 6f | 6d 20 74 68 65 20 73 65 |ssed fro|m the se|
|00000150| 72 76 65 72 0d 2d 2d 20 | 20 74 6f 20 74 68 65 20 |rver.-- | to the |
|00000160| 73 63 72 69 70 74 20 61 | 6e 64 20 63 6f 6e 74 61 |script a|nd conta|
|00000170| 69 6e 73 20 74 68 65 20 | 75 73 65 72 2d 73 75 70 |ins the |user-sup|
|00000180| 70 6c 69 65 64 20 61 72 | 67 75 6d 65 6e 74 73 2e |plied ar|guments.|
|00000190| 20 49 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | If the |argument|
|000001a0| 73 0d 2d 2d 20 20 61 72 | 65 20 65 6d 70 74 79 2c |s.-- ar|e empty,|
|000001b0| 20 74 68 65 20 73 63 72 | 69 70 74 20 61 73 6b 73 | the scr|ipt asks|
|000001c0| 20 74 68 65 20 57 57 57 | 20 63 6c 69 65 6e 74 20 | the WWW| client |
|000001d0| 74 6f 20 70 72 6f 6d 70 | 74 20 66 6f 72 20 74 68 |to promp|t for th|
|000001e0| 65 6d 2e 20 0d 2d 2d 20 | 20 49 66 20 61 72 67 75 |em. .-- | If argu|
|000001f0| 6d 65 6e 74 73 20 77 65 | 72 65 20 70 61 73 73 65 |ments we|re passe|
|00000200| 64 2c 20 74 68 65 6e 20 | 74 68 65 20 73 63 72 69 |d, then |the scri|
|00000210| 70 74 20 62 65 68 61 76 | 65 73 20 61 63 63 6f 72 |pt behav|es accor|
|00000220| 64 69 6e 67 6c 79 2e 0d | 2d 2d 20 20 4e 6f 74 65 |dingly..|-- Note|
|00000230| 3a 20 74 68 65 20 3c 49 | 53 49 4e 44 45 58 3e 20 |: the <I|SINDEX> |
|00000240| 48 54 4d 4c 20 74 61 67 | 20 69 73 20 77 68 61 74 |HTML tag| is what|
|00000250| 20 74 65 6c 6c 73 20 74 | 68 65 20 63 6c 69 65 6e | tells t|he clien|
|00000260| 74 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 69 |t the do|cument i|
|00000270| 73 20 73 65 61 72 63 68 | 61 62 6c 65 0d 2d 2d 20 |s search|able.-- |
|00000280| 20 20 20 61 6e 64 20 61 | 72 67 75 6d 65 6e 74 73 | and a|rguments|
|00000290| 20 73 68 6f 75 6c 64 20 | 62 65 20 63 6f 6c 6c 65 | should |be colle|
|000002a0| 63 74 65 64 20 61 6e 64 | 20 70 61 73 73 65 64 2e |cted and| passed.|
|000002b0| 20 0d 0d 2d 2d 73 65 74 | 20 68 74 74 70 5f 31 30 | ..--set| http_10|
|000002c0| 5f 68 65 61 64 65 72 20 | 74 6f 20 22 48 54 54 50 |_header |to "HTTP|
|000002d0| 2f 31 2e 30 20 32 30 30 | 20 4f 4b 22 20 26 20 72 |/1.0 200| OK" & r|
|000002e0| 65 74 75 72 6e 20 26 20 | 22 53 65 72 76 65 72 3a |eturn & |"Server:|
|000002f0| 20 4d 61 63 48 54 54 50 | 20 31 2e 32 22 20 26 20 | MacHTTP| 1.2" & |
|00000300| 72 65 74 75 72 6e 20 26 | 20 c2 0d 2d 2d 09 22 4d |return &| ..--."M|
|00000310| 49 4d 45 2d 76 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |IME-vers|ion: 1.0|
|00000320| 22 20 26 20 72 65 74 75 | 72 6e 20 26 20 22 43 6f |" & retu|rn & "Co|
|00000330| 6e 74 65 6e 74 2d 74 79 | 70 65 3a 20 74 65 78 74 |ntent-ty|pe: text|
|00000340| 2f 68 74 6d 6c 22 20 26 | 20 72 65 74 75 72 6e 0d |/html" &| return.|
|00000350| 73 65 74 20 68 74 74 70 | 5f 31 30 5f 68 65 61 64 |set http|_10_head|
|00000360| 65 72 20 74 6f 20 22 22 | 0d 69 66 20 68 74 74 70 |er to ""|.if http|
|00000370| 5f 73 65 61 72 63 68 5f | 61 72 67 73 20 3d 20 22 |_search_|args = "|
|00000380| 22 20 74 68 65 6e 0d 09 | 72 65 74 75 72 6e 20 68 |" then..|return h|
|00000390| 74 74 70 5f 31 30 5f 68 | 65 61 64 65 72 20 26 20 |ttp_10_h|eader & |
|000003a0| 22 3c 49 53 49 4e 44 45 | 58 3e 3c 68 32 3e 50 6c |"<ISINDE|X><h2>Pl|
|000003b0| 65 61 73 65 20 65 6e 74 | 65 72 20 74 68 65 20 6b |ease ent|er the k|
|000003c0| 65 79 77 6f 72 64 20 74 | 6f 20 73 65 61 72 63 68 |eyword t|o search|
|000003d0| 20 66 6f 72 2e 3c 2f 68 | 32 3e 22 0d 65 6c 73 65 | for.</h|2>".else|
|000003e0| 20 69 66 20 68 74 74 70 | 5f 73 65 61 72 63 68 5f | if http|_search_|
|000003f0| 61 72 67 73 20 3d 20 22 | 68 65 6c 6c 6f 22 20 74 |args = "|hello" t|
|00000400| 68 65 6e 0d 09 72 65 74 | 75 72 6e 20 68 74 74 70 |hen..ret|urn http|
|00000410| 5f 31 30 5f 68 65 61 64 | 65 72 20 26 20 22 3c 68 |_10_head|er & "<h|
|00000420| 32 3e 48 65 6c 6c 6f 2c | 20 68 6f 77 20 61 72 65 |2>Hello,| how are|
|00000430| 20 79 6f 75 3f 3c 2f 68 | 32 3e 22 0d 65 6c 73 65 | you?</h|2>".else|
|00000440| 0d 09 72 65 74 75 72 6e | 20 68 74 74 70 5f 31 30 |..return| http_10|
|00000450| 5f 68 65 61 64 65 72 20 | 26 20 22 3c 68 32 3e 53 |_header |& "<h2>S|
|00000460| 6f 72 72 79 2c 20 49 20 | 64 6f 6e 27 74 20 75 6e |orry, I |don't un|
|00000470| 64 65 72 73 74 61 6e 64 | 20 27 22 20 26 20 c2 0d |derstand| '" & ..|
|00000480| 09 09 68 74 74 70 5f 73 | 65 61 72 63 68 5f 61 72 |..http_s|earch_ar|
|00000490| 67 73 20 26 20 22 27 2e | 20 54 72 79 20 27 68 65 |gs & "'.| Try 'he|
|000004a0| 6c 6c 6f 27 20 69 6e 73 | 74 65 61 64 2e 3c 2f 68 |llo' ins|tead.</h|
|000004b0| 32 3e 22 0d 65 6e 64 20 | 69 66 00 00 00 00 00 00 |2>".end |if......|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 32 |........|.......2|
|00000510| 06 48 c0 b0 85 5e c3 44 | 03 67 04 20 05 60 08 20 |.H...^.D|.g. .`. |
|00000520| 54 30 28 01 06 48 c0 2c | 00 20 54 30 28 01 06 48 |T0(..H.,|. T0(..H|
|00000530| 0d 73 65 61 72 63 68 2e | 73 63 72 69 70 74 02 00 |.search.|script..|
|00000540| 00 9a 54 45 58 54 54 6f | 79 53 01 00 00 34 01 00 |..TEXTTo|yS...4..|
|00000550| 00 9a 54 45 58 54 54 6f | 79 53 01 00 00 34 01 00 |..TEXTTo|yS...4..|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 12 14 00 00 00 00 00 00 | 04 3a 00 00 01 48 6e 20 |........|.:...Hn |
|00000580| 07 52 87 bc 87 6e d0 60 | 64 7e 00 60 5c 20 54 20 |.R...n.`|d~.`\ T |
|00000590| 07 22 00 c0 fc 00 dc 48 | 41 c2 fc 00 dc 48 41 42 |.".....H|A....HAB|
|000005a0| 41 d0 81 41 e8 01 ec 4a | 30 08 00 67 38 20 54 20 |A..A...J|0..g8 T |
|000005b0| 07 22 00 c0 fc 00 dc 48 | 41 c2 fc 00 dc 48 41 42 |.".....H|A....HAB|
|000005c0| 41 d0 81 41 e8 01 ec 42 | 30 08 00 be ae ff f8 6d |A..A...B|0......m|
|000005d0| 14 b8 87 6d 10 4a 2b 00 | c8 67 0a 2f 07 2f 0b 4e |...m.J+.|.g././.N|
|000005e0| ad 16 6a 50 4f 20 07 52 | 87 bc 87 6e a0 4a 2e 00 |..jPO .R|...n.J..|
|000005f0| 17 67 00 00 aa 2e 06 60 | 00 00 9c be ae 00 18 6d |.g.....`|.......m|
|00000600| 00 00 00 12 00 7c 00 92 | 01 a6 03 2c 00 7c 00 83 |.....|..|...,.|..|
|00000610| 01 fb 03 1d 00 00 00 00 | 01 00 00 00 01 16 00 00 |........|........|
|00000620| 00 16 00 00 00 32 01 0d | 3b e4 1f 96 00 00 00 1c |.....2..|;.......|
|00000630| 00 32 00 00 57 50 6f 73 | 00 00 00 0a 00 80 ff ff |.2..WPos|........|
|00000640| 00 00 00 00 01 0d 39 bc | 00 00 00 00 00 00 00 00 |......9.|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+